﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MFramework
{
    public class DataManager
    {
        private static Dictionary<string, DataTable> tableDic = new Dictionary<string, DataTable>();

        public static DataTable GetDataTable(string name)
        {
            if (tableDic.ContainsKey(name))
            {
                return tableDic[name];
            }
            tableDic.Add(name, DataLoader.LoadConfigTable(name));
            return tableDic[name];
        }
    }
}
